using UnityEngine;
using System.Collections;

public class BeTopWhenDrag : MonoBehaviour {
	
	public GameObject target;
	
	Vector3 originPosition;

	// Use this for initialization
	void Start () {
		
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnPress(bool press){
		if(press){
			UIManagement.Instance().Rerange(target);
		}
	}
}
